﻿using System;

namespace Codeflows
{
	public class DefaultCodeflowFactory : ICodeflowFactory
	{
        public DisposableContext<Codeflow> CreateCodeflow(Type codeflowType)
        {
            var codeflow = (Codeflow)Activator.CreateInstance(codeflowType);

            return new DisposableContext<Codeflow>(codeflow);
        }
	}
}